#include "planetApp.h"
#include "Planet.h"

void PlanetApp::createScene () {
    Planet * planet = new Planet ();

    mSceneMgr->setAmbientLight( ColourValue( 1,1,1 ) );
    planet->createSphere("mySphereMesh", 100, 64, 64);
    Entity* sphereEntity = mSceneMgr->createEntity("mySphereEntity", "mySphereMesh");
    SceneNode* sphereNode = mSceneMgr->getRootSceneNode()->createChildSceneNode();
    sphereEntity->setMaterialName("Tutorial/NormalMap");
    sphereNode->attachObject(sphereEntity);

    mCamera->setPosition(0, 0, 400);
    mCamera->lookAt(sphereNode->getPosition());
    mCamera->setNearClipDistance(0.5);
    mCamera->setFarClipDistance(1000000);
}
